package com.itheima.arraydemo;

public class ArrayDemo01 {
    public static void main(String[] args) {
        // 数组的静态初始化
        // 需求1：定义学生年龄
        int[] arr1 = new int[]{11, 12, 13, 14};
        int[] arr2 = {11, 12, 13, 14};
        // 需求2：定义学生姓名
        String[] arr3 = new String[]{"zhangsan", "lisi", "wangwu"};
        String[] arr4 = {"zhangsan", "lisi", "wangwu"};
        // 需求3：定义学生升高
        double[] arr5 = new double[]{11.1, 12.2, 13.3};
        double[] arr6 = {11.1, 12.2, 13.3};
        System.out.println(arr4); // [Ljava.lang.String;@b4c966a
        System.out.println(arr5); // [D@2f4d3709
        System.out.println(arr1); // [I@4e50df2e
    }
}
